package org.sso.common.cons;

public class Const {
	// 自定义私钥
	// public static final String Secretkey = "p00Tm071X992t3Eg05";

	public static final String CUT_SYMBOL = "#";

	public static final String cookieName = "uid";

	public static final String ticket_cookiename = "pid";

	public static final String ENCODE = "UTF-8";

	/**
	 * <p>
	 * 拦截器判断后设置 Token至当前请求，减少Token解密次数： request.setAttribute("ssotoken_attr",
	 * token)
	 * </p>
	 * <p>
	 * 使用获取方式： SSOHelper.attrToken(request)
	 * </p>
	 */
	// public static final String SSO_TOKEN_ATTR = "SSOTokenAttr";

	public static final String cookie_path = "/";

	public static final String ReturnURL = "ReturnURL";
	public static final String Data = "data";
	public static final int COOKIE_MAX_AGE = -1;

	/**
	 * SSO 动态设置 Cookie 参数
	 * <p>
	 * -1 浏览器关闭时自动删除 0 立即删除 120 表示Cookie有效期2分钟(以秒为单位)
	 * </p>
	 */
	public static final String SSO_COOKIE_MAXAGE = "sso_cookie_maxage";

}
